﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BartonExtension;

namespace Model.Weixin
{
    public class AccessToken
    {
        public string access_token { get; set; }
        public DateTime createTime { get; set; }
        public double expiredTime { get; set; }
        public string refresh_token { get; set; }
        public string openid { get; set; }
        public bool isExpired
        {
            get
            {
                return (DateTime.Now - createTime.AddSeconds(expiredTime)).TotalSeconds >= 1000;
            }
        }
    }
}